package com.happy.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.happy.common.annotation.Excel;
import com.happy.common.core.domain.BaseEntity;

/**
 * APP广告图片管理对象 app_banner
 * 
 * @author ruoyi
 * @date 2024-12-27
 */
public class AppBanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** Banner ID */
    private Long bannerId;

    /** 字典类型 */
    private String categoryType;

    /** Banner 类别 */
    @Excel(name = "Banner 类别")
    private String category;

    /** 图片URL */
    @Excel(name = "图片URL")
    private String imageUrl;

    /** 目标URL */
    @Excel(name = "目标URL")
    private String targetUrl;

    /** 描述 */
    @Excel(name = "描述")
    private String altText;

    /** 排序顺序-数字越小排得越前 */
    @Excel(name = "排序顺序-数字越小排得越前")
    private Long sortOrder;

    /** 是否启用（1是，0否） */
    @Excel(name = "是否启用", readConverterExp = "1=是，0否")
    private Integer isActive;

    public void setBannerId(Long bannerId) 
    {
        this.bannerId = bannerId;
    }

    public Long getBannerId() 
    {
        return bannerId;
    }
    public void setCategoryType(String categoryType) 
    {
        this.categoryType = categoryType;
    }

    public String getCategoryType() 
    {
        return categoryType;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setTargetUrl(String targetUrl) 
    {
        this.targetUrl = targetUrl;
    }

    public String getTargetUrl() 
    {
        return targetUrl;
    }
    public void setAltText(String altText) 
    {
        this.altText = altText;
    }

    public String getAltText() 
    {
        return altText;
    }
    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }
    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bannerId", getBannerId())
            .append("categoryType", getCategoryType())
            .append("category", getCategory())
            .append("imageUrl", getImageUrl())
            .append("targetUrl", getTargetUrl())
            .append("altText", getAltText())
            .append("sortOrder", getSortOrder())
            .append("isActive", getIsActive())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
